﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.CourseTrain.Dtos
{
    public class InstractorDto
    {
        /// <summary>
        /// ID
        /// </summary>
        [JsonProperty("id")]
        public string Id { get; set; }

        /// <summary>
        /// 讲师类型
        /// </summary>
        [JsonProperty("type")]
        public string Type { get; set; }

        /// <summary>
        /// 讲师类型
        /// </summary>
        [JsonIgnore]
        public string InstructorType
        {
            get
            {
                return Type == "员工讲师" ? "内部讲师" : "外部讲师";
            }
        }

        /// <summary>
        /// 讲师名称
        /// </summary>
        [JsonProperty("username")]
        public string Username { get; set; }

        /// <summary>
        /// 讲师性别
        /// </summary>
        [JsonProperty("gender")]
        public string Gender { get; set; }

        /// <summary>
        /// 讲师电话
        /// </summary>
        [JsonProperty("teachertel")]
        public string TeacherTel { get; set; }

        /// <summary>
        /// 讲师级别
        /// </summary>
        [JsonProperty("level")]
        public string Level { get; set; }

        /// <summary>
        /// 讲师评分
        /// </summary>
        [JsonProperty("courseGrade")]
        public string CourseGrade { get; set; }

        /// <summary>
        /// 日期时间
        /// </summary>
        [JsonProperty("datetime")]
        public DateTime DateTime { get; set; }

        /// <summary>
        /// 级别 ID
        /// </summary>
        [JsonProperty("levelId")]
        public string LevelId { get; set; }

        /// <summary>
        /// 用户 ID
        /// </summary>
        [JsonProperty("userid")]
        public string UserId { get; set; }

        /// <summary>
        /// 授课时间
        /// </summary>
        [JsonProperty("teachingTime")]
        public string TeachingTime { get; set; }

        /// <summary>
        /// 授课数（课程）
        /// </summary>
        [JsonProperty("courseCount")]
        public string CourseCount { get; set; }

        /// <summary>
        /// 培训数量
        /// </summary>
        [JsonProperty("trainingCount")]
        public string TrainingCount { get; set; }
    }
}
